package 抽象工厂.v1;

import 抽象工厂.v1.factory.FemaleHumanFactory;
import 抽象工厂.v1.factory.MaleHumanFactory;
import 抽象工厂.v1.human.Human;

public class NvWa {
    public static void main(String[] args) {
        // 黄 男
        Human yellowMale = new MaleHumanFactory().createYellowHuman();
        // 白 女
        Human witerFemale = new FemaleHumanFactory().createWhiteHuman();
        //  黑 女
        Human blackFemale = new FemaleHumanFactory().createBlackHuman();

        yellowMale.laugh();
        yellowMale.sex();
        witerFemale.talk();
        witerFemale.sex();
        blackFemale.talk();
        blackFemale.sex();
    }
}
